//
//  JKRShareManager.h
//  BaoJiDianJing
//
//  Created by Lucky on 2017/8/25.
//  Copyright © 2017年 KaiHei. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UShareUI/UShareUI.h>

typedef void(^shareManagerBlock)(BOOL success, UMSocialPlatformType platformType);

@interface JKRShareManager : NSObject

/// 分享URL并弹出分享平台选择面板
+ (void)jkr_shareURLWithTitle:(NSString *)title icon:(id)icon subHead:(NSString *)subHead url:(NSString *)url currentViewController:(id)currentViewController block:(shareManagerBlock)block;
/// 分享URL到指定平台
+ (void)jkr_shareURLWithTitle:(NSString *)title icon:(id)icon subHead:(NSString *)subHead url:(NSString *)url shareToPlatform:(UMSocialPlatformType)platformType currentViewController:(id)currentViewController block:(shareManagerBlock)block;
/// 分享图片并弹出分享平台选择面板
+ (void)jkr_shareImageWithImage:(UIImage *)image currentViewController:(id)currentViewController block:(shareManagerBlock)block;
/// 分享图片到指定平台
+ (void)jkr_shareImageWithImage:(UIImage *)image shareToPlatform:(UMSocialPlatformType)platformType currentViewController:(id)currentViewController block:(shareManagerBlock)block;;
/// 分享小程序
+ (void)jkr_shareMiniProgramWithTitle:(NSString *)title desc:(NSString *)desc thumImage:(id)thumImage webpageUrl:(NSString *)webpageUrl userName:(NSString *)userName path:(NSString *)path currentViewController:(id)currentViewController block:(shareManagerBlock)block;

@end
